<!-- Navigation -->
	<ul id = "navigation-menu" class = "navigation-menu">
        <li class="first">
            <a class = "profile" href="#profile">
                <span>Profile</span>
            </a>
        </li>
		<li><a class = "cv" href="#cv"><span>CV</span></a></li>
		<li><a class = "documents" href="#documents"><span>Documents</span></a></li>
		<li><a class = "portfolio" href="#portfolio"><span>Portfolio</span></a></li>
		<li class="last"><a class = "contacts" href="#contacts"><span>Contacts</span></a></li>

        <?php foreach($pages as $page):?>
            <li class="first">
                <a class="<?php echo $page['Page']['title']?>"
                   href="/page/<?php echo $page['Page']['title']?>/<?php echo $page['Page']['id']?>"
                   data-target="#page-<?php echo $page['Page']['id']?>">
                    <span style="background-image:url('<?php echo $page['Page']['image']?>');"><?php echo $page['Page']['title']?></span>
                </a>
            </li>
        <?php endforeach;?>
	</ul>
<!-- /Navigation -->